package com.zj.osm.mvp;

import java.util.List;

/**
 * 作者: Dream on 2017/8/4 21:48
 * QQ:510278658
 * E-mail:510278658@qq.com
 */

//<V extends MvpView>
//V类型必需是MvpView_5子类
public abstract class BasePresenter<V extends MvpView> {

    //高度抽象接口->MvpView->不是具体
    //面向对象编程：父类引用指向子类的实例对象
    private V view;

    public V getView() {
        return view;
    }

    //绑定
    public void attachView(V view){
        this.view = view;
    }

    //解绑
    public void detachView(){
        this.view = null;
    }

}
